package cn.sunlight.city.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: MybatisPlusConfig
 * @Description:  配置插件
 * @Author: sunlight
 * @Date: 11:19 - 2022/2/11
 * @Version: 1.0
 **/
@Configuration
@MapperScan("cn.sunlight.city.mapper")
public class MybatisPlusConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }

}
